#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
错误码定义

"""

# 返回状态错误码
ERROR_CODE_INFO = {
	"Success": {"result": 0, "reason": u"成功"},
    "AccountPwdError": {"result": 1, "reason": u"账号密码错误，请输入正确的账号密码"},
    "AccountExistError": {"result": 2, "reason": u"账号已经注册存在"},
    "VerifyCodeError": {"result": 3, "reason": u"验证码错误"},
    "ParamsError": {"result": 4, "reason": u"参数错误"},
    "AccountNoVaild": {"result": 5 , "reason": u"账号未激活"},
    "AccountNoCompany": {"result": 6 , "reason": u"账号完善企业信息"},
    "PasswordError": {"result": 7 , "reason": u"账号密码错误"},
    "NewPasswordError": {"result": 8 , "reason": u"新密码错误"},
    "AccountRegistError": {"result": 9, "reason": u"用户注册信息错误"},
    "AccountNotExist": {"result": 10, "reason": u"账号信息不存在"},

    "BrandInfoError": {"result": 100, "reason": u"品牌信息填写不完整"},
    "BrandCreateError": {"result": 101 , "reason": u"品牌创建失败"},

    "BrandLicenseInfoError": {"result": 102, "reason": u"品牌证书信息填写不完整"},
    "BrandLicenseNoExist":{"result": 103, "reason": u"品牌证书已不存在"},
    "BrandidInfoError": {"result": 104, "reason": u"品牌id信息错误"},
    "BrandAccountError": {"result": 105 , "reason": u"该品牌拥有者信息错误"},
    "BrandNameRepeatError": {"result": 106, "reason": u"品牌名称已存在"},
    "BrandLicenseTypeError": {"result": 107, "reason": u"品牌证书类型错误"},

    "ProductInfoError": {"result": 110, "reason": u"产品信息填写不完整"},
    "ProductLicenseInfoError": {"result": 111, "reason": u"产品证书信息不完整"},
    "ProductError" : {"result": 112, "reason": u"产品信息错误"},
    "ProductLicenseNoExist": {"result": 113, "reason": u"产品证书已不存在"},
    "ProductLicenseTypeError": {"result": 114, "reason": u"产品证书类型错误"},
    "ProductLicenseDateError": {"result": 115, "reason": u"产品证书日期错误"},

    "MaterialInfoError": {"result": 120, "reason": u"原料信息不全"},
    "MaterialNotUserError": {"result": 121, "reason": u"原料不属于用户"},

    "SumaOrderError": {"result": 130, "reason": u"溯码订单信息错误"},
    "SumaOrderDealedError": {"result": 131, "reason": u"溯码订单已经处理过"},
    "SumaPublishPriceError": {"result": 132, "reason": u"溯码发布价格错误"},


    "CompanyNeedError": {"result": 140, "reason": u"企业必填信息不完整"},
    "CompanyNameRepeat": {"result": 141, "reason": u"企业名称已被使用"},
    "CompanyExistError":   {"result": 142, "reason": u"企业信息已经存在"},
    "CompanyNotExistError": {"result": 143, "reason": u"企业信息不存在"},


    "EmailAddressError": {"result": 150, "reason": u"邮箱地址不正确"},
    "EmailSendError": {"result": 151, "reason": u"邮件发送失败"},
    "PasswordFormatError": {"result": 152, "reason": u"密码格式错误"},
    "TokenFailureError": {"result": 153, "reason": u"token失效"},

    "ImageHeightWidthError": {"result": 160, "reason": u"图片高宽需为{width}*{height}"},
    "ImageSizeError": {"result": 161, "reason": u"图片大小不超过{size}KB"},

	"SystemError": {"result": 99999, "reason": u"系统异常,请稍后再试！"},
}